package com.qwiki.dict;

import java.io.File;
import java.io.LineNumberReader;
import java.nio.charset.Charset;
import java.nio.file.Files;

import com.qwiki.content.AdhocCategoryFilter;
import com.qwiki.content.AllPassFilter;
import com.qwiki.content.StringFilter;

import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;

import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;

public interface Dictionary {
  public boolean contains(String string);

  /**
   * provide an array of strings, returns the same array but with all non-dictionary words
   * replaced with space.
   *
   * @param raw the input array
   * @return the same array with filtered content.
   */
  public String[] filter(String[] raw);

  /**
   * @return a string with all input string's non-dictionary words removed.
   */
  public String filter(String string);
}
